package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class EtlDmIndexDimtb implements Serializable {
    private static final long serialVersionUID = 1L;

    private String pk;

    private String pkIndex;

    private String grpDim;

    private Byte fgDef;

    private String naTb;

    public String getPk() {
        return pk;
    }

    public void setPk(String pk) {
        this.pk = pk;
    }

    public String getPkIndex() {
        return pkIndex;
    }

    public void setPkIndex(String pkIndex) {
        this.pkIndex = pkIndex;
    }

    public String getGrpDim() {
        return grpDim;
    }

    public void setGrpDim(String grpDim) {
        this.grpDim = grpDim;
    }

    public Byte getFgDef() {
        return fgDef;
    }

    public void setFgDef(Byte fgDef) {
        this.fgDef = fgDef;
    }

    public String getNaTb() {
        return naTb;
    }

    public void setNaTb(String naTb) {
        this.naTb = naTb;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EtlDmIndexDimtb other = (EtlDmIndexDimtb) that;
        return (this.getPk() == null ? other.getPk() == null : this.getPk().equals(other.getPk()))
            && (this.getPkIndex() == null ? other.getPkIndex() == null : this.getPkIndex().equals(other.getPkIndex()))
            && (this.getGrpDim() == null ? other.getGrpDim() == null : this.getGrpDim().equals(other.getGrpDim()))
            && (this.getFgDef() == null ? other.getFgDef() == null : this.getFgDef().equals(other.getFgDef()))
            && (this.getNaTb() == null ? other.getNaTb() == null : this.getNaTb().equals(other.getNaTb()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPk() == null) ? 0 : getPk().hashCode());
        result = prime * result + ((getPkIndex() == null) ? 0 : getPkIndex().hashCode());
        result = prime * result + ((getGrpDim() == null) ? 0 : getGrpDim().hashCode());
        result = prime * result + ((getFgDef() == null) ? 0 : getFgDef().hashCode());
        result = prime * result + ((getNaTb() == null) ? 0 : getNaTb().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", pk=").append(pk);
        sb.append(", pkIndex=").append(pkIndex);
        sb.append(", grpDim=").append(grpDim);
        sb.append(", fgDef=").append(fgDef);
        sb.append(", naTb=").append(naTb);
        sb.append("]");
        return sb.toString();
    }
}